From: Lars Magne Ingebrigtsen Date: Thu, 28 Oct 2010 22:03:15 +0000 (+0000) Subject: gnus-sum.el (gnus-summary-rescan-group): Try to restore the window config after resel... X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~5904 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=83bc753c03e6e7d1ec94181826fc96b32130a417;p=emacs.git gnus-sum.el (gnus-summary-rescan-group): Try to restore the window config after reselecting. --- diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 258bc2e25df..6912c04beb3 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,3 +1,8 @@ +2010-10-28 Lars Magne Ingebrigtsen + + * gnus-sum.el (gnus-summary-rescan-group): Try to restore the window + config after reselecting. + 2010-10-28 Julien Danjou * shr.el (shr-put-image): Use point even if only inserting text. diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index ca540b0f22f..60e3cc83d7f 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el @@ -7033,7 +7033,11 @@ The prefix argument ALL means to select all articles." (defun gnus-summary-rescan-group (&optional all) "Exit the newsgroup, ask for new articles, and select the newsgroup." (interactive "P") - (gnus-summary-reselect-current-group all t)) + (let ((config gnus-current-window-configuration)) + (gnus-summary-reselect-current-group all t) + (gnus-configure-windows config) + (when (eq config 'article) + (gnus-summary-select-article)))) (defun gnus-summary-update-info (&optional non-destructive) (save-excursion